<?php
// 抽象插件类
abstract class Addon {
  public $addon_path = '';
  public $config_file = '';

  public function __construct() {}
  
  public function getConfig($addon, $k='') {
    $res = cms($addon);
    return $k != '' ? $res[$k] : $res;
  }

  public function install() {}

  public function uninstall() {}
}
